home *** CD-ROM | disk | FTP | other *** search
- %OP%VS4.11 (04-Dec-91), Gerald Lewis Fitton, R4000 5065 0380 9644
- %OP%DP0
- %OP%IRY
- %OP%PL0
- %OP%HM0
- %OP%FM0
- %OP%BM0
- %OP%LM4
- %OP%FX
- %OP%FY
- %OP%FS
- %OP%PT1
- %OP%PDPipeLine
- %OP%WC792,2058,228,1620,0,0,0,0
- %CO:A,72,72%
- %C%Making a Command File
- %C%by Gerald L Fitton
- Keywords:
- Command Macro Fitton
-
- The easiest way to make a command file is to use the
- 'Command File record' facility.
-
- I shall describe how to make a command file which searches for 'men' in
- the DataFile and replaces it with 'persons'.
-
- This is the method:
-
- 1 Double click on [DataFile] to load it
- 2 Place the pointer within the [DataFile] window
- 3 Execute <Ctrl FY> to start recording
- 4 Type a suitable file name into the dialogue box
- 5 Tap <Return>
- 6 Execute <Ctrl BSE> (Block SEarch and replace)
- changing men to person
- 7 Execute <Ctrl FY> to stop recording the command file
-
- You can do anything you like at step 6. In fact you can have a series
- of steps to do something complex such as searching for the top of a
- block (flagged by using 'B Fwd' as a marker), <Ctrl Z> to mark the top
- of the block, search for the bottom of the block (flagged by 'C Fwd')
- and mark it with <Ctrl Z>. Then you can sort the marked block on
- column A (where the date is), clear the markers with <Ctrl Q>, and then
- move on to step 7.
-
- Recording command files this way means that you don't have to learn all
- the fancy commands, just start recording with <Ctrl FY>, do the job,
- stop recording with a second <Ctrl FY>.
-
- I have recorded two command files called [Men2Person] and [Person2Men].
- One reverses the action of the other.
-